Fix various comparison errors due to limited pointer types.
authorBernd Zeimetz <bernd@bzed.de>
Wed, 5 May 2010 15:38:07 +0000 (17:38 +0200)
committerBernd Zeimetz <bernd@bzed.de>
Wed, 5 May 2010 15:38:07 +0000 (17:38 +0200)
debian/patches/limited_pointer_type_comparison_fixes [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/limited_pointer_type_comparison_fixes b/debian/patches/limited_pointer_type_comparison_fixes
new file mode 100644 (file)
index 0000000..c598f06
--- /dev/null
@@ -0,0 +1,32 @@
+--- a/osm.c
++++ b/osm.c
+@@ -537,7 +537,7 @@ osm_node_tag(const char *args, const cha
+       const char **avp = &attrv[0];
+       const char *key = "", *value = "";
+       char *str;
+-      char ikey;
++      signed char ikey;
+       
+         while (*avp) {
+               if (strcmp(avp[0], "k") == 0)
+--- a/cetus.c
++++ b/cetus.c
+@@ -121,12 +121,12 @@ typedef struct cetus_track_head_s
+ typedef struct cetus_track_point_s
+ {
+-      char hour;
+-      char min;
+-      char sec;
+-      char dsec;
+-      char sat;
+-      char hdop;
++      signed char hour;
++      signed char min;
++      signed char sec;
++      signed char dsec;
++      signed char sat;
++      signed char hdop;
+       pdb_32 latitude;
+       pdb_32 longitude;
+       short speed;
index 2f264db6969555eb160ff311b906995a125a05b8..3c3cf53eef46eb45868b44d617bfee1feff43c53 100644 (file)
@@ -1,2 +1,3 @@
+limited_pointer_type_comparison_fixes
 htmldoc-location
 gpsbabelfe-name